package com.ttxs.common.security.aspect;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RequestMappingConfiguration {
    @ConditionalOnProperty(name = "ttxs.security.secretKeyEnabled", havingValue = "true", matchIfMissing = true)
    @Bean
    public RequestMappingAspect requestMappingAspect() {
        return new RequestMappingAspect();
    }
}
